<?php

class UtilityCell extends BoardCell{
	
	const SINGLE_PRICE_MULTIPLIER = 4;
	const ALL_PRICE_MULTIPLIER = 10;
	private $price;
	private $owner = null;
	private $mortgaged = null;
	
	public function __construct($config)
	{
		parent::__construct($config);
		
		$this->price = $config['price'];
	}
		
	public function getPrice()
	{
		return $this->price;
	}
	
	public function isOwned()
	{
		return $this->owner;
	}
	
	public function setOwner($player)
	{
		$this->owner = $player;
	}
	
	public function getOwner()
	{
		return $this->owner;
	}
	
	public function isMortgaged()
	{
		if($this->mortgaged == NULL)
		{
			return false;
		}
		else
		{
			return true;
		}
	}
	
	public function setMortgaged()
	{
		$this->mortgaged = true;
	}
	
	public function removeMortgage()
	{
		$this->mortgaged = NULL;
	}
}
